package jp.co.ziro.wikidozan.controller.wiki;

import jp.co.ziro.wikidozan.controller.BaseController;
import jp.co.ziro.wikidozan.controller.ControllerResponse;
import jp.co.ziro.wikidozan.controller.Request;
import jp.co.ziro.wikidozan.util.EditWikiArticleView;
import jp.co.ziro.wikidozan.util.WikiArticle;



public class EditController extends BaseController {


    @Override
    protected ControllerResponse createResponse(Request requestData)
            throws Exception {
        WikiArticle article = new WikiArticle(requestData.getPath().getId());
        EditWikiArticleView view = new EditWikiArticleView(article);
        return requestData.xmlResponse(view.toXml());
    }
}
